package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-07-25 15:42
 */
public class Test03 {
    public static void main(String[] args) {
        String s1=new String();
        System.out.println(s1);
        System.out.println(s1.equals(""));
        System.out.println(s1.equals(" "));
        String s2=null;
        System.out.println(s2);
//        System.out.println(s2.equals(""));
        String s3=new String("abc");
        System.out.println(s3);

        char[] chars={'a','b','c','d','e','f'};
        String s4=new String(chars);
        System.out.println(s4);
        String s5=new String(chars,1,3);
        System.out.println(s5);

//        byte[] bytes={'a','b','c'};
        byte[] bytes={97,98,99};
        String s6 = new String(bytes);
        System.out.println(s6);
    }
}
